package com.code.hfd.observer.jdk;

/**
 * @author xi.yang
 * @create 2019-05-04 21:01
 **/
public class WeatherStation {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);

        weatherData.setMeasurements(80,65,30.5F);
        System.out.println("======");
        weatherData.setMeasurements(82,70,29.2F);
        System.out.println("======");
        weatherData.setMeasurements(78,90,29.5F);
    }
}
